package com.gaussian.property.module.biz.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gaussian.property.module.biz.entity.CheckTable;
import com.gaussian.property.module.biz.entity.ProjectCheckTable;
import com.gaussian.property.module.biz.vo.projectchecktable.PageQueryProjectTableRequest;
import com.gaussian.property.module.biz.vo.projectchecktable.ProjectCheckTableDetail;
import com.songqi.common.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 项目绑定的稽核表 Mapper 接口
 * </p>
 *
 * @author songqi(13776346982)
 * @since 2024-04-09
 */

@Mapper
public interface ProjectCheckTableMapper extends BaseMapperX<ProjectCheckTable> {

    /**
     * 查询项目配置的稽核表
     * @param projectId
     * @return
     */
    List<CheckTable> queryProjectCheckTable(String projectId);

    /**
     * 分页查询项目配置的稽核表
     * @param iPage
     * @param queryRequest
     * @return
     */
    IPage<ProjectCheckTableDetail> pageQueryProjectTable(IPage<ProjectCheckTableDetail> iPage, @Param("param")PageQueryProjectTableRequest queryRequest);
}
